#ifndef COLORTRIANGLE_H
#define COLORTRIANGLE_H

#include <QObject>
#include <QString>

class ColorTriangle : public QObject {
    Q_OBJECT
public:
    ColorTriangle () {
        
    }
    const QString verticalShaderText =
            "#version 330 core \n"
            "layout (location = 0) in vec3 aPos; \n"
            "layout (location = 1) in vec3 aColor; \n"
            "\n"
            "out vec3 ourColor; \n"
            "uniform float xOffset; \n"
            "\n"
            "void main() { \n"
            "    gl_Position = vec4(aPos.x + xOffset, aPos.y, aPos.z, 1.0); \n"
            "    ourColor = aColor;"
            "}";

    const QString fragmentShaderText =
            "#version 330 core \n"
            "out vec4 FragColor; \n"
            "in vec3 ourColor; \n"
            "\n"
            "void main(void) \n"
            "{ \n"
            "    FragColor = vec4(ourColor, 1.0f); \n"
            "}";
};

#endif
